package com.hntest.dao;

import com.hntest.entity.BidRequest;
import com.hntest.entity.RealAuth;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface BidRequestDao {

    //新增贷款对象
    public int insertBidRequest(BidRequest bidRequest);

    //通过用户id,以及标的状态查询自己是否有未完成的借款;
    public BidRequest selectByLoginId(int id);

    //分页前求总记录数
    public int getCounts(BidRequest bidRequest);

    //分页查当页数据
    public List<BidRequest> getListByPage(Map map);

    //修改状态审核
    public int updateBidRequest(BidRequest bidRequest);

    //根据bidrequestid 查看 记录
    public BidRequest selectByBidRequestId(int bidRequestid);

}
